<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	layout:decorate="~{admin/layout/parent}">
<head>
	<title id="pageTitle">活动管理列表</title>
</head>
<body>

<th:block layout:fragment="page-content">
<div class="card-box">
	<div class="page-search">
		<form id="search-form">
			<div class="row">
				<div class="col-md-3 col-sm-6">
					<select class="form-control" name="type">
						<option value="">全部分类</option>
						<option th:each="type : ${types}" th:value="${type.key}">[(${type.value})]</option>
					</select>
				</div>
				<div class="col-md-3 col-sm-6 pull-right text-right">
					<button id="search-btn" class="btn btn-primary waves-effect waves-light" type="button"><i class="fa fa-search"></i> 查询</button>
					<button id="reset-btn" class="btn btn-white waves-effect waves-light" type="button"><i class="fa fa-rotate-left"></i> 重置</button>
				</div>
			</div>
		</form>
	</div>
	<div class="page-operate">
		<a class="btn btn-success waves-effect waves-light" th:href="@{/admin/sys/activity/add}"><i class="fa fa-plus"></i> 新增</a>
		<button id="btn-batch-delete" class="btn btn-danger waves-effect waves-light" type="button"><i class="fa fa-trash-o"></i> 批量删除</button>
	</div>
	<div class="page-table">
		<select data-final="types" class="hide">
			<option th:each="type : ${types}" th:value="${type.key}">[(${type.value})]</option>
		</select>
		<select data-final="cycles" class="hide">
			<option th:each="cycle : ${cycles}" th:value="${cycle.key}">[(${cycle.value})]</option>
		</select>
		<table id="table" class="table table-striped table-bordered dt-responsive nowrap"></table>
	</div>
</div>
</th:block>
<th:block layout:fragment="page-plugin">
	
</th:block>
<th:block layout:fragment="page-js">
<script th:src="@{/page/admin/sys/activity.js}" type="text/javascript"></script>
</th:block>
</body>
</html>
